package com.symria.server.po;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * PayInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "PAY_INFO")
public class PayInfo implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private Date createDate;
	private Double money;
	private String state;

	// Constructors

	/** default constructor */
	public PayInfo() {
	}

	/** full constructor */
	public PayInfo(Integer userId, Date createDate, Double money,
			String state) {
		this.userId = userId;
		this.createDate = createDate;
		this.money = money;
		this.state = state;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "USER_ID", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "CREATE_DATE", nullable = false, length = 0)
	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Column(name = "MONEY", nullable = false, precision = 10)
	public Double getMoney() {
		return this.money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	@Column(name = "STATE", nullable = false, length = 8)
	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

}